//package com.wkedu.repair.filter;
//
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.stereotype.Component;
//
//import javax.servlet.*;
//import javax.servlet.annotation.WebFilter;
//import java.io.IOException;
//import java.util.logging.LogRecord;
//
///**
// * @author 港港
// * @version 1.0
// * @date 2021/8/23 下午4:42
// */
//@Component
//@WebFilter(urlPatterns = "/**",filterName = "loginFilter")
//public class LoginFilter implements Filter {
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//        System.out.println("过滤器初始化");
//        Filter.super.init(filterConfig);
//    }
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
//            throws IOException, ServletException {
//        System.out.println("过滤器开启");
//        chain.doFilter(request,response);
//    }
//
//    @Override
//    public void destroy() {
//        System.out.println("过滤器销毁");
//        Filter.super.destroy();
//    }
//}
